Objects Reference

flyEngine::draw_text_center

Prototype

void draw_text_center(int x,int y,char *text)

Parameters

Parameter Type Description
x int x screen coordinate for text
y int y screen coordinate for text
text char * text string

Return Value

None

Remarks

This function draws a string of text centred at the specified screen co-ordinates. The text is drawn as a set of texture mapped faces using the selected font texture in flyEngine fontspic member variable. Before using this function, text mode must be started using the start_text_mode function.